package cn.edu.xaut.mybatisers.mall.Dao;

import cn.edu.xaut.mybatisers.mall.Entity.*;
import jdk.nashorn.internal.runtime.regexp.joni.ast.CClassNode;
import org.apache.ibatis.jdbc.SQL;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public interface AdminDao {
    ArrayList<Admin> login(Admin admin) throws SQLException;
    void alterOrder(Bill bill) throws SQLException;
    ArrayList<Bill> findOrders(Bill bill) throws SQLException;
    int findConsumerByAccountMember(String accountMember) throws SQLException;
    void addCommodity(Commodity commodity) throws SQLException;
    int deleteCommodity(Commodity commodity) throws SQLException;
    int alterCommodity(Commodity commodity) throws SQLException;
    ArrayList<Commodity> selectCommodity(Commodity commodity) throws SQLException;
    void addCommodityCategory(CommodityCategory commodityCategory) throws SQLException;
    void alterCommodityCategory(CommodityCategory commodityCategory) throws SQLException;
    List<CommodityCategory> findCommodityCategory() throws SQLException;
    int deleteCommodityCategory(CommodityCategory commodityCategory) throws SQLException;
    CommodityCategory getCommodityCategoryById(CommodityCategory commodityCategory) throws SQLException;
}
